package com.dianxin.smartpark.dao.mapper.attendance;

import com.dianxin.smartpark.dao.dataobject.attendance.SmartParkAttendanceUserOccupy;
import com.dianxin.smartpark.dao.dataobject.attendance.SmartParkAttendanceUserOccupyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SmartParkAttendanceUserOccupyMapper {
    long countByExample(SmartParkAttendanceUserOccupyExample example);

    int deleteByExample(SmartParkAttendanceUserOccupyExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SmartParkAttendanceUserOccupy record);

    int insertSelective(SmartParkAttendanceUserOccupy record);

    List<SmartParkAttendanceUserOccupy> selectByExample(SmartParkAttendanceUserOccupyExample example);

    SmartParkAttendanceUserOccupy selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SmartParkAttendanceUserOccupy record, @Param("example") SmartParkAttendanceUserOccupyExample example);

    int updateByExample(@Param("record") SmartParkAttendanceUserOccupy record, @Param("example") SmartParkAttendanceUserOccupyExample example);

    int updateByPrimaryKeySelective(SmartParkAttendanceUserOccupy record);

    int updateByPrimaryKey(SmartParkAttendanceUserOccupy record);

    /**
     * 通过时间和userId查询是否有占用信息
     * @Description:  通过时间和userId查询是否有占用信息
     * @Author: ChenYong
     * @Date: 2021/8/17 0017
     * @param smartParkAttendanceUserOccupy:
     * @Return: List<SmartParkAttendanceUserOccupy>
     */
    List<SmartParkAttendanceUserOccupy>  selectByTime(SmartParkAttendanceUserOccupy smartParkAttendanceUserOccupy);
}